<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>计算下面fruit对象共有多少个水果</title>
</head>
<body>
<script>
    var fruit = {
        apple: 20,
        pear: 20,
        peach: 10
    };
    document.write(fruit.apple+fruit.pear+fruit.peach);// write your code here...
</script>
</body>
</html>